home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d17 / pcp.arc / PCP.DOC < prev    next >
Text File  |  1989-06-12  |  21KB  |  517 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                           PRINT CONTROL PROGRAM (PCP)
  8.  
  9.                      (C) Copyright 1988 Blanchard Software
  10.                               All rights reserved.
  11.  
  12.  
  13.  
  14.                This is a shareware program. All users may copy
  15.                and distribute the Print Control Program and the
  16.                accompanying files provided that the program and
  17.                files are not altered in any way.
  18.  
  19.                              DISCLAIMER OF WARRANTY
  20.  
  21.                This software, instructions and reference
  22.                materials are sold "as is" and without warranties
  23.                as to performance or merchantability. The sellers
  24.                salespersons may have made statements about this
  25.                software. Any such statements do not constitute
  26.                warranties and shall not be relied on by the buyer
  27.                in deciding whether to purchase this program.
  28.                This program is sold without any express or
  29.                implied warranties whatsoever. Because of the
  30.                diversity of conditions and hardware under which
  31.                this program may be used, no warranty of fitness
  32.                for a particular purpose is offered. The user is
  33.                advised to test the program thoroughly before
  34.                relying on it. The user must assume the entire
  35.                risk of using the program. Any liability of seller
  36.                or manufacturer will be limited exclusively to
  37.                product replacement or refund of the purchase
  38.                price.
  39.  
  40.  
  41.                                    TRADEMARKS
  42.  
  43.                IBM is a registered trademark of International
  44.                Business Machines Corporation.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                                   INTRODUCTION
  70.  
  71.  
  72.                PCP is a memory resident Print Control Program. It offers
  73.           improved print screen capability (high fidelity screen capture)
  74.           for text screens and the capability to send commands to the
  75.           printer from within other programs. It is supplied with a printer
  76.           code file for an IBM compatible printer. Instructions are
  77.           provided for modifying or preparing a printer code file for other
  78.           printers.
  79.                You might use screen prints in documenting a computer
  80.           program, preparing tutorials, preparing reports or for any
  81.           documentation purpose that requires an "image" of the display
  82.           screen.
  83.                PCP produces a printed screen image that captures the most
  84.           important features of the video display. It cannot duplicate
  85.           every screen feature (blinking, for example), but it is
  86.           sufficient for many documentation purposes. It shows normal print
  87.           and underlining. It prints blanks for non-display mode characters
  88.           (passwords), and it represents high intensity display and reverse
  89.           video.
  90.                PCP gives additional printer control from within programs
  91.           that offer only limited printer control. For example, you might
  92.           want to switch to compressed print while you are running a
  93.           program that does not let you set printer modes. With PCP you can
  94.           send the control codes to the printer and them resume operation
  95.           of the other program without interruption.
  96.                The following list is a summary of features offered by PCP
  97.           used as a screen capture program.
  98.  
  99.  
  100.                     1.  You can print any rectangular subset of the
  101.                screen from a single character to the whole screen.
  102.                     2.  You can set print margins to place the print
  103.                properly on the page.
  104.                     3.  You can send control codes (escape sequences)
  105.                to the printer to select print modes. This will allow
  106.                you to set print size and line spacing to adjust the
  107.                proportions of the printed image.
  108.                     4.  You can make the printer double strike each
  109.                line for darker and more uniform print.
  110.                     5.  The printed image shows underlining as it
  111.                appears on the (monochrome) screen. It shows high
  112.                intensity display as extra black (bold) printed
  113.                characters. It prints blanks for screen text with the
  114.                non-display attribute (frequently used for passwords).
  115.                It represents reverse video display by printing a gray
  116.                background with the text characters.
  117.                     6.  The PCP pop-up menu also allows you to select
  118.                the original DOS print screen function.
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.                In addition to it's basic screen capture function, PCP can
  136.           be used to send control character sequences to the printer from
  137.           within another program. All you have to do is press
  138.           <shift><PrtSc> and make choices from the PCP pop-up menus. Any of
  139.           your printer's features can be made accessible this way.
  140.                PCP is compatible with both monochrome and color monitors.
  141.           Note however, that the color monitor (CGA) cannot display
  142.           underlining. Furthermore, some color monitors are incapable of
  143.           producing high intensity text. If your software package sends
  144.           underlined text to the screen, the color monitor displays it as
  145.           blue characters on a black background. PCP will read this text
  146.           from the screen and print underlined text. If your software
  147.           package sends high intensity text to the screen, PCP will read it
  148.           and print bold characters whether or not your color monitor can
  149.           display high intensity text.
  150.  
  151.  
  152.                              USING THE PRINT CONTROL PROGRAM
  153.  
  154.  
  155.                In the discussion below the symbol <shift><PrtSc> means to
  156.           press the print screen key while holding down a shift key. <Esc>
  157.           refers to the escape key. <CR> refers to the carriage return or
  158.           "enter" key. This is the angled arrow key on the IBM keyboard.
  159.                PCP normally resides in memory as an inactive program. The
  160.           program is not activated until you press the <shift><PrtSc> key
  161.           combination. The program will then save the current display
  162.           contents and present a pop-up menu. You make menu selections by
  163.           pressing the number key (or first letter) of your selection.
  164.                There are seven menu options. Each is described below.
  165.  
  166.                MENU OPTION 1 (1, C or c) sends control codes (escape
  167.           sequences) to the printer. A menu will pop-up when you choose
  168.           this option. Just type the letter corresponding to the set of
  169.           codes you want. You may send several sets of codes. When you have
  170.           transmitted all the required codes, press <Esc> to return to the
  171.           main menu. The printer will usually stay in the selected mode
  172.           until you change the mode or turn the printer off.
  173.                Most printers are not capable of executing all possible
  174.           combinations of their individual print modes. Choosing print
  175.           feature X, such as near letter quality, may defeat a previously
  176.           selected mode Y, such as compressed print. See your printer
  177.           manual.
  178.  
  179.                MENU OPTION 2 (2, A or a) is for selecting the screen area
  180.           to be printed. When you choose this option the PCP menu will
  181.           disappear and the whole screen will be highlighted. You can use
  182.           the arrow keys to change the boundaries of the highlighted area.
  183.           Only the highlighted area will be printed.
  184.                Use the arrow keys to move the top left corner of the
  185.           highlighted area first. When the corner is properly located,
  186.           press the F7 key (or you can press "f" for fix). If you make an
  187.           error, you can press F5 (or "u" to undo) to start over again.
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.                After you have fixed the top left corner, use the arrow keys
  200.           to set the lower right corner of the highlighted area. Press F7
  201.           or "f" when the area you want printed is defined. The main menu
  202.           will reappear, and PCP will remember the area definition.
  203.  
  204.                MENU OPTION 3 (3, M or m) sets print margins. A pop-up menu
  205.           asks you for the number of lines for the top margin and then the
  206.           number of spaces for the left margin. PCP remembers these values
  207.           for use in subsequent printing. It returns you to the main menu.
  208.  
  209.                MENU OPTION 4 (4, P or p) tells the computer to begin
  210.           printing. It prints the defined screen area with the margins you
  211.           selected using any printer codes you may have sent. If you have
  212.           not defined an area with menu option 2, then the whole screen is
  213.           printed. If you have not set margins with menu option 3, then
  214.           zero margin values are used.
  215.                Area definition and margin values are remembered from screen
  216.           to screen. The printer also retains it's control code settings.
  217.                For option 4 (and 5), PCP sends codes for underline or bold
  218.           to the printer as required by the screen text. If you have
  219.           previously set your printer for a mode that is incompatible with
  220.           underline or bold you may not get the desired print effects.
  221.  
  222.                MENU OPTION 5 (5, D or d) is the same as option 4 except
  223.           that each printed line is double struck. This will make darker,
  224.           more uniform printout. You can use this option if your printer
  225.           ribbon is old and worn. You can also try this option for
  226.           preparing screen prints for use as masters for copying.
  227.  
  228.                MENU OPTION 6 (6, O or o) is the original print screen
  229.           function. The program transfers control to the actual BIOS print
  230.           screen code. Thus, normal DOS print screen is still available to
  231.           you even though PCP  has taken the <shift><PrtSc> key
  232.           combination.
  233.  
  234.                MENU OPTION 7 (7, E, e or <Esc>) ends the PCP session and
  235.           removes the menus from the screen. It restores the original
  236.           screen that was present when PCP was called. The program remains
  237.           memory resident and can be called again by pressing
  238.           <shift><PrtSc>. Area definition and margin values are retained.
  239.  
  240.                The IBM character set includes some characters which will
  241.           display properly on the screen but not on the printer. For
  242.           example ASCII 13 (hex 0D) displays a musical note on the screen,
  243.           but it is read by the printer as a carriage return. This is true
  244.           principally of the characters with ASCII codes less than 32 (hex
  245.           20). For some printers there may also be a problem with
  246.           characters just above ASCII 127 (hex 7F).
  247.                If you get some unexpected line feeds or page ejects in
  248.           doing a print screen, check the screen character at the point
  249.           where the effect occurs. If your printer allows you choice of
  250.           character sets, you may be able to eliminate the problem that
  251.           way.
  252.                These problems occur only rarely because the offending
  253.           characters are not often used in displays.
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.                                 PROGRAM SETUP AND CHECKOUT
  268.  
  269.                PCP controls printer operation by inserting special hex
  270.           control codes into the stream of characters sent to the printer.
  271.           The printer electronics recognizes the codes and removes them
  272.           from the character stream. It uses the codes to reset the
  273.           internal printer mechanism to do such things as bold printing,
  274.           underlining, compressed characters etc.
  275.                For example, consider what happens when PCP does a screen
  276.           print that includes some underlined text. PCP reads the screen
  277.           character by character. When it first encounters an underlined
  278.           character, it looks up the code for underlining and inserts this
  279.           code in the character stream immediately before the first
  280.           underlined character. Your printer notices the special code and
  281.           resets itself for underlining before it prints the character.
  282.           Your printer will stay in the underline mode until it gets
  283.           another code to reset. PCP continues reading underlined
  284.           characters and sending them to the printer. When PCP next
  285.           encounters a character that is not underlined, it inserts the
  286.           "underline off" hex code into the character stream immediately
  287.           before the print character. Your printer detects the code and
  288.           turns off underlining before printing the character.
  289.                This is a very nice system. But the rub here is that all
  290.           printers do not use the same control codes. If your printer is
  291.           not an IBM compatible model, then you must supply the correct
  292.           printer codes for PCP.
  293.                PCP uses a file called PRINTER.COD to define printer control
  294.           codes. The file supplied with the program has codes for an IBM
  295.           compatible printer. You can change the codes in the file using a
  296.           word processor that produces ASCII output.
  297.                File entries are arranged in pairs. Each pair consists of
  298.           the name of a printer function, such as "Start Underline," and
  299.           the hex character control code sequence for that function. The
  300.           names are used for display on the PCP pop-up menu that identifies
  301.           printer functions.
  302.                The name of the printer function can be up to 15 characters
  303.           long. The hex codes must be two characters each (Use leading zero
  304.           if necessary) with a space between them. There is room for five
  305.           control codes with each named function. You can find printer
  306.           codes (escape sequences) in your printer manual.
  307.                The printer codes for bold and underline must always be the
  308.           first through fourth pairs of entries in the file. PCP uses these
  309.           printer commands and expects to find them there. After the first
  310.           four pairs, you can put whatever printer control codes you find
  311.           useful in the file. Condensed print and line spacing controls are
  312.           useful for adjusting the relative proportions of the printed
  313.           image.
  314.                The printer code file supplied with PCP is listed below to
  315.           show the proper format for the file. Note that codes and names go
  316.           on separate lines and are arranged in pairs. Each line should be
  317.           ended with a carriage return. The file can contain up to 16 sets
  318.           of printer function codes.
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.                Bold Start
  333.                1B 47
  334.                Bold Stop
  335.                1B 48
  336.                Underline Start
  337.                1B 2D 01
  338.                Underline Stop
  339.                1B 2D 00
  340.                17 CPI Start
  341.                0F
  342.                17 CPI Stop
  343.                12
  344.                1/8" space
  345.                1B 30
  346.                7/72" space
  347.                1B 31
  348.                Full space
  349.                1B 33 2C
  350.                6 LPI
  351.                1B 33 24
  352.                Emph. Start
  353.                1B 45
  354.                Emph. Stop
  355.                1B 46
  356.  
  357.  
  358.  
  359.                Some printers offer several variations of bold print. These
  360.           may be described as enhanced print, emphasized print or some
  361.           similar names. It is recommended that you use whichever variant
  362.           of bold print is compatible with condensed print. This will
  363.           enable you to make condensed screen printouts that are
  364.           approximately the same proportions as the screen.
  365.                The simplest way is to change the codes is to load a copy of
  366.           PRINTER.COD into your word processor. Then change the hex codes
  367.           by simply typing the correct codes using digits from 0 to 9 and
  368.           letters A to F. You can also change the names of the functions if
  369.           you want. Then write the file to disk without any margins, extra
  370.           spaces or formatting. If you have not used your word processor to
  371.           produce a pure ASCII file before, check your word processor
  372.           documentation.
  373.                If you change the printer code file, you will want to test
  374.           it with your printer. An additional test file called PRTXT.EXE is
  375.           supplied with PCP. This program generates lines of normal, high
  376.           intensity, reverse video, underlined and non-display text. PCP
  377.           can be operated in a nonresident mode to simplify testing.
  378.                To test the printer codes, type   PRTXT<CR>   to display the
  379.           test character strings. Then type   PCP<CR>   to load the print
  380.           utility program in its nonresident mode. Then you can use the PCP
  381.           menu options to select printer codes and to print. Try out all of
  382.           the printer code pairs. If you need to make corrections to the
  383.           file, you can return to your word processor and make the changes.
  384.                It is important that the codes be correct. PCP will not be
  385.           able to detect errors in the printer code file.
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.                Once you are satisfied that the printer codes are correct,
  398.           you can load PCP in it's memory resident mode. Type   PCP R<CR>
  399.           to do this. The program should be loaded before any transient
  400.           programs are loaded.
  401.                Normally, you would load PCP  as part of your power up
  402.           sequence. Adding the line    PCP R<CR>    to your AUTOEXEC.BAT
  403.           file will cause PCP to be loaded automatically. PCP.COM and
  404.           PRINTER.COD must be in the same directory.
  405.  
  406.  
  407.                             REGISTRATION
  408.  
  409.                Shareware effectively gives you "free home trial" of new
  410.           software. If you don't like the program or don't plan to use the
  411.           program, then there is no obligation to pay for it. If you use
  412.           Print Control Program, then you should register your copy with
  413.           the program author and pay the five dollar registration fee.
  414.                The author receives no payment from shareware libraries or
  415.           bulletin boards that distribute copies of the program.
  416.                Send your $5.00 check payable to Walter Blanchard, along
  417.           with any comments, suggestions or complaints to
  418.  
  419.                           Walter Blanchard
  420.                           Blanchard Software
  421.                           P.O. Box 1650
  422.                           Norristown Pa. 19401
  423.  
  424.           We will keep you informed of program improvements or upgrades.
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.                                 REGISTRATION FORM
  466.  
  467.               I expect to use the Print Control Program on a regular or
  468.           occasional basis. I have enclosed a check payable to Walter
  469.           Blanchard for the five dollar registration fee.
  470.  
  471.           Name:   ________________________________________________
  472.  
  473.           Company:________________________________________________
  474.  
  475.           Street: ________________________________________________
  476.  
  477.           City:   ________________________________________________
  478.  
  479.           State:  __________________________    ZIP  _____________
  480.  
  481.           Telephone:   __________________
  482.                            (Optional)
  483.  
  484.  
  485.           I use Print Control Program on an:
  486.  
  487.                   [ ]  IBM PC   [ ] IBM XT   [ ] IBM AT
  488.                   [ ]  OTHER (please specify):
  489.  
  490.  
  491.  
  492.           Hard disk? (Y/N):
  493.           Monitor?     [ ]  Monochrome   [ ] Color
  494.           Printer:
  495.  
  496.           Where did you get your copy of PCP?
  497.  
  498.  
  499.  
  500.           Suggestions/Comments/Complaints:
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.           Mail to:       Walter Blanchard
  511.                          Blanchard Software
  512.                          P.O. Box 1650
  513.                          Norristown Pa. 19401
  514.  
  515.  
  516. 
  517.